<include file="Public:header" />
<div id="main-content">
    <div id="top-alert" class="fixed alert alert-error" style="display: none;">
        <button class="close fixed" style="margin-top: 4px;">&times;</button>
        <div class="alert-content">警告内容</div>
    </div>
    <div id="main" class="main">
        <div class="main-title-h">
            <span class="h1-title">担保交易管理</span>
        </div>
        <div class="cf">
            <div class="fl"></div>
            <div class="search-form fr cf">
                <div class="sleft">
                    <form name="formSearch" id="formSearch" method="get" name="form1">
                        <select id='coin_type_select' style="width: 160px; float: left; margin-right: 10px;" name="coin_type" class="form-control">
								<option value="0">全部货币</option>
							<volist name="coins" id="vo">
                                <option value="{$vo.id}" 
                                    <eq name="Think.get.coin_type" value="$vo.id">selected</eq>
                                >{$vo.title}</option>
							</volist>
						</select>
                        <select id='status_select' style="width: 160px; float: left; margin-right: 10px;" name="status" class="form-control">
							<option value="0">全部状态</option>
                            <option value="1" <eq name="Think.get.status" value="1">selected</eq>>交易中</option>
							<option value="2" <eq name="Think.get.status" value="2">selected</eq>>已成功</option>
							<option value="3" <eq name="Think.get.status" value="3">selected</eq>>已拒绝</option>
						</select>
                    </form>
                    <script>
                        //搜索功能
                        $(function() {
                            $('#coin_type_select').change(function() {
                                $('#formSearch').submit();
                            });
                            $('#status_select').change(function() {
                                $('#formSearch').submit();
                            });
                        });
                    </script>
                </div>
            </div>
        </div>
        <div class="data-table table-striped">
            <table class="">
                <thead>
                    <tr>
                        <th cols="12" style="background-color:#009200">共{$count}条记录</th>
                    </tr>
                    <tr>
                        <th class="">ID</th>
                        <th class="">用户名</th>
                        <th class="">用户手机号</th>
                        <th class="">用户真实姓名</th>
                        <th class="">交易号</th>
                        <th class="">交易类型</th>
                        <th class="">交易货币类型</th>
                        <th class="">交易货币单价</th>
                        <th class="">交易货币数量</th>
                        <th class="">交易货币总价</th>
                        <th class="">对方交易总价</th>
                        <th class="">中介费支付方式</th>
                        <th class="">交易状态</th>
                        <th class="">交易时间</th>
                    </tr>
                </thead>
                <tbody>
                    <notempty name="list">
                        <volist name="list" id="vo">
                            <tr>
                                <td>{$vo.id}</td>
                                <td>{$vo.username}</td>
                                <td>{$vo.phone}</td>
                                <td>{$vo.real_name}</td>
                                <td>{$vo.business_no}</td>
                                <td>{$vo.roleName}</td>
                                <td>{$vo.coinTypeName}</td>
                                <td>{$vo.coin_price}</td>
                                <td>{$vo.coin_count}</td>
                                <td>{$vo.coin_total}</td>
                                <td>{$vo.other_coin_total}</td>
                                <td>{$vo.agency_fee_pay_type_name}</td>
                                <td>{$vo.statusTitle}</td>
                                <td>{$vo.create_time}</td>
                            </tr>
                        </volist>
                        <else/>
                        <td colspan="12" class="text-center">Oh! 暂时还没有内容!</td>
                    </notempty>
                </tbody>
            </table>
            <div class="page">
                <div>{$page}</div>
            </div>
        </div>
    </div>
</div>
<include file="Public:footer" />
<block name="script">
    <script type="text/javascript" charset="utf-8">
        //导航高亮
        highlight_subnav("{:U('danbao/index')}");
    </script>
</block>
</block>